U_CAPI void U_EXPORT2 scsu_compress (UnicodeCompressor *comp, uint8_t **target, const uint8_t *targetLimit, const UChar **source, const UChar *sourceLimit, UErrorCode *status)

Compress a Unicode character array into a byte array

Documentation

Compress a Unicode character array into a byte array. This function is not guaranteed to completely fill the output buffer, nor is it guaranteed to compress the entire input. If the source data is completely compressed, status will be set to U_ZERO_ERROR. If the source data is not completely compressed, status will be set to U_INDEX_OUTOFBOUNDS_ERROR. If this occurs, larger buffers should be allocated, or data flushed, and the function should be called again with the new buffers.
Parameters:
comp - A pointer to a previously-initialized UnicodeCompressor
target - I/O parameter. On input, a pointer to a buffer of bytes to receive the compressed data. On output, points to the byte following the last byte written. This buffer must be at least 4 bytes.
targetLimit - A pointer to the end of the array target.
source - I/O parameter. On input, a pointer to a buffer of Unicode characters to be compressed. On output, points to the character following the last character compressed.
sourceLimit - A pointer to the end of the array source.
status - A pointer to an UErrorCode to receive any errors.
See Also:
decompress

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de